﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BenCaoXuan.Infrastructure.Dto.Admin.product
{
    public class ProductPackage_Dto
    {
        /// <summary>
        /// 产品套餐
        /// </summary>
        public string? id { get; set; }

        /// <summary>
        /// 产品套餐名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 封面
        /// </summary>
        public string? cover { get; set; }

        /// <summary>
        /// 套餐原价
        /// </summary>
        public double? originalPrice { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public double? price { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public int? isBan { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        public string? validPeriod { get; set; }

        /// <summary>
        /// 套餐项目数量
        /// </summary>
        public int items { get; set; }

        public string? description { get; set; }


        /// <summary>
        /// 套餐详情
        /// </summary>
        public ProductPackageDetails_Dto details { get; set; }
    }

    /// <summary>
    /// 套餐详情
    /// </summary>
    public class ProductPackageDetails_Dto() {
        public string? description { get; set; }

        /// <summary>
        /// 包含项目
        /// </summary>
        public List<ProductIncludes_Dto> includes { get; set; }

        public string? MyProperty { get; set; }
    }

    /// <summary>
    /// 套餐包含的项目
    /// </summary>
    public class ProductIncludes_Dto() {
        public string? id { get; set; }
        /// <summary>
        /// 服务产品名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 产品规格
        /// </summary>
        public string? specs { get; set; }

        /// <summary>
        /// 产品价格
        /// </summary>
        public double? price { get; set; }
    }
}
